package com.gp.gyx.controller;

import com.gp.entity.Area;
import com.gp.gyx.service.StatisticsAnalyzeService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Date 2024/4/24 15:52
 * @Author BigPotato743
 * @Email 2764826228@qq.com
 * @Phone 17623386574
 */


@RestController
@ResponseBody
@CrossOrigin
@RequestMapping("/statistics/analyze")
public class StatisticsAnalyzeController {

    @Resource
    private StatisticsAnalyzeService statisticsAnalyzeService;

    @PostMapping("/queryFactory")
    public List<Area> queryFactory(){
        return statisticsAnalyzeService.queryFactory();
    }
}
